#include<bits/stdc++.h>

using namespace std;
double p[3] = {5, 3, 1.0 / 3};
int a[3];

void dfs(int k) {
    if (k >= 3) {
        if (inner_product(a, a + 3, p, 0) == 100 and accumulate(a, a + 3, 0) == 100 and a[2] % 3 == 0) {
            printf("cock=%d,hen=%d,chicken=%d\n", a[0], a[1], a[2]);
        }

        return;
    }
    for (int i = 0; i <= 100; i++) {
        a[k] = i;
        dfs(k + 1);
    }
}

int main() {
    dfs(0);

    return 0;
}